#include <iostream>
#include <string>
#include <memory>
#include "selectserver.hpp"

int main(int n,char* args[])
{
    if(n != 2)
    {
        std::cout << "./main port" <<std::endl;
        exit(1);
    }
    uint16_t port = std::stoi(args[1]);

    std::unique_ptr<PollServer::Poll> ser(new PollServer::Poll(port));
    ser->Init();
    ser->run();
    return 0;
}